<?php
/*
Author: Hallvard Westman
Project: Links
 -----------------------------------MENUBAR-------------------------------------------------*/
//If a user is not logged in

if($user->loggedOn()){
?>
<div id="bar">
	
		<h1><a href="links.php?id=<?php echo $user->getID() ?>">LINKS</a></h1>
		<ul>
		<li><hr/></li>
		<li><a href="index.php">About</a></li>
		<li><hr/></li>
		<li><a href="archive.php?id=<?php echo $user->getID() ?>">Archive</a></li>
		<li><hr/></li>
		<li><a href="authenticate.php">Logout</a></li>
		<li><hr/></li>
	</ul>
</div>
<?php  
}

else	{
?>
<div id="bar">
	
		<h1><a href="index.php">LINKS</a></h1>
		<ul>
		<li><hr/></li>
		<li><a href="index.php">About</a></li>
		<li><hr/></li>
		<li><a href="register.php">Register</a></li>
		<li><hr/></li>
		<li><a href="login.php">Login</a></li>
		<li><hr/></li>
	</ul>
</div>
<?php 

}